package com.example.demo.demos.web.service;

import com.example.demo.demos.web.entity.Car;
import com.example.demo.demos.web.mapper.CarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarService {
    @Autowired
    private CarMapper carMapper;
    public  int addcar(Car car){
        return carMapper.addcar(car);
    }
    public  int updatecar(Car car){
        return carMapper.updatecar(car);
    }

}
